package dao;

import entity.Working;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkingMapper {

    /**
     * 查询所有工作笔记信息
     * @return
     */
    public List<Working> getList();

    public int getCount(@Param("title")String title);

    public int getTotalCount();

    /**
     * 根据编号查询工作笔记信息
     * @param id
     * @return
     */
    public Working getWorking(@Param("id")int id);

    public int save(@Param("title")String title,@Param("content")String content,@Param("type")int type);

    /**
     * 查询所有工作笔记信息
     * @param beginIndex
     * @param pageSize
     * @return
     */
    public List<Working> getListPage(@Param("beginIndex") int beginIndex,@Param("pageSize") int pageSize);
}
